package com.ji.TestRedis;

import java.io.Serializable;

public class User implements Serializable {
  
    private static final long serialVersionUID = -7898194272883238670L;  
  
    public User() {  
    }  
  
    public User(String id) {  
    }  
  
    public User(String id, String name) {  
        this.id = id;  
        this.name = name;  
    }  
  
    private String id;  
  
    private String name;  
  
    public String getId() {  
        return id;  
    }  
  
    public void setId(String id) {  
        this.id = id;  
    }  
  
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }  
  
  
    public String getKey() {  
        return getId();  
    }  

	@Override
	public String toString() {
		return "id:" + id + "|name:" + name;
	}
}  